package light.mvc.model.workflow;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import light.mvc.model.base.IdEntity;

/**
 * 流转的表单文档
 * 
 * @author tyg
 * 
 */
@Entity
@Table(name = "workflow_field")
public class Tfield extends IdEntity implements java.io.Serializable{

	private String name; // 字段名
	private Integer type; // 字段类型号 1：ValidateBox ,2：DateTimeBox,3：Combo,4：ComboBox ,5：ComboTree
	private String description;
	private String value;
	private TformTemplate formTemplate;
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "formTemplateid")
	public TformTemplate getFormTemplate() {
		return formTemplate;
	}

	public void setFormTemplate(TformTemplate formTemplate) {
		this.formTemplate = formTemplate;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}


}
